package com.yzd.netmonitor.exception;

import org.springframework.dao.DataAccessException;

import com.yzd.netmonitor.web.ResponseCode;

//抛出的异常都是与特定技术无关的
public class ResponseCodeServiceException extends DataAccessException {

	private static final long serialVersionUID = 6217754590323723759L;

	private ResponseCode responseCode;

	public ResponseCode getResponseCode() {

		return responseCode;
	}

	public void setResponseCode(ResponseCode responseCode) {

		this.responseCode = responseCode;
	}

	public ResponseCodeServiceException(ResponseCode responseCode) {

		super(responseCode.getDesp());
		this.responseCode = responseCode;
	}
}
